package vos;

import java.util.ArrayList;
import java.util.List;

import com.sun.jna.Structure;

public class JTTSConfig extends Structure {
	public short wVersion;
	public char nCodePage;
	public char[] szVoiceID;
//	public short tmp;
//	public short tmp1;
	public short nDomain;
	public short nPitch;
	public short nVolume;
	public short nSpeed;
	public short nPuncMode;
	public short nDigitMode;
	public short nEngMode;
	public short nTagMode;
	public short nTryTimes;
	public short nIdleTime;
	public boolean bLoadBalance;
	public short nVoiceStyle;
	public short nBackAudio;
	public short nBackAudioVolume;
	public short wBackAudioFlag;
	public short nVoiceBufSize;
	public short nInsertInfoSize;
	public short[] nReserved=null;
//	public short nPitchInPrecision;
//	public short nVolumeInPrecision;
//	public short nSpeedInPrecision;
	public JTTSConfig() {
		super();
	}
	 public static class ByReference extends JTTSConfig implements Structure.ByReference{}
     public static class ByValue extends JTTSConfig implements Structure.ByValue{}
	@Override
	protected List getFieldOrder() {
		// TODO Auto-generated method stub
		List<String> fild=new ArrayList<String>();
		fild.add("wVersion");
		fild.add("nCodePage");
		fild.add("szVoiceID");
		fild.add("nDomain");
		fild.add("nPitch");
		fild.add("nVolume");
		fild.add("nSpeed");
		fild.add("nPuncMode");
		fild.add("nDigitMode");
		fild.add("nEngMode");
		fild.add("nTagMode");
		fild.add("nTryTimes");
		fild.add("nIdleTime");
		fild.add("bLoadBalance");
		fild.add("nVoiceStyle");
		fild.add("nBackAudio");
		fild.add("nBackAudioVolume");
		fild.add("wBackAudioFlag");
		fild.add("nVoiceBufSize");
		fild.add("nInsertInfoSize");
		fild.add("nReserved");
		fild.add("nPitchInPrecision");
		fild.add("nVolumeInPrecision");
		fild.add("nSpeedInPrecision");
		return fild;
	}
	
}
